projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbee8c5
)
places sidebar: Don't leak shortcuts
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jul 2015 01:00:12 +0000
(21:00 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Jul 2015 01:00:12 +0000
(21:00 -0400)
Poined out by valgrind.
gtk/gtkplacessidebar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index 5399af939b8e8c3ad933ff2cc7566b89c99b8e93..b8f990461bd621afef2bd696b4789077e280861f 100644
(file)
--- a/
gtk/gtkplacessidebar.c
+++ b/
gtk/gtkplacessidebar.c
@@
-4025,6
+4025,9
@@
gtk_places_sidebar_dispose (GObject *object)
sidebar->source_targets = NULL;
}
+ g_slist_free_full (sidebar->shortcuts, g_object_unref);
+ sidebar->shortcuts = NULL;
+
G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object);
}